from enum import Enum

from app.serve.wtrees.base import BaseModel
from sqlalchemy import Column, Integer, String


class ColumnModel(BaseModel):
    __tablename__ = "wtrees_column"

    class StateEnum(Enum):
        stop = 0
        start = 1

    id = Column(Integer(), primary_key=True)
    column_name = Column(String(60), nullable=False, comment="栏目名称")
    state = Column(Integer(), nullable=False, comment="状态")
